import { commonProps,shapeTypes } from "../../libs/config";

const borderTypes = ["surround", "bottom", "none"];



export const selectProps = {
	...commonProps,
	// 输入的值
	modelValue: {
	  type: [String, Number,Boolean],
	},
	// 是否禁用输入框
	disabled: {
	  type: Boolean,
	  default:null
	},
	// 禁用状态时的背景色
	disabledColor: {
	  type: String
	},
	// 	输入框为空时的占位符
	placeholder: {
	  type: String,
	},
	// 指定placeholder的样式类，注意页面或组件的style中写了scoped时，需要在类名前写.deep
	placeholderClass: {
	  type: String
	},
	// 指定placeholder的样式
	placeholderStyle: {
	  type: [String, Object]
	},
	// 边框类型，surround-四周边框，bottom-底部边框，none-无边框
	border: {
	  type: String,
	  values: borderTypes
	},
	// 输入框形状，circle-圆形，square-方形
	shape: {
	  type: String,
	  values: shapeTypes
	},
	// 展示的option数量
	showOptionNumber: {
	  type: Number
	},
	// 聚焦时的zIndex
	zIndex: {
	  type: [String, Number]
	},
};

export const selectEmits = {
	"update:modelValue": (value: any) => true,
	change: (value: any) => true,
};
